@echo off
echo 启动AI客服服务...
echo.

echo 1. 检查Ollama服务状态...
curl -s http://localhost:11434/api/tags > nul
if %errorlevel% neq 0 (
    echo 错误: Ollama服务未运行，请先启动Ollama服务
    echo 请运行: ollama serve
    pause
    exit /b 1
)
echo Ollama服务运行正常

echo.
echo 2. 启动Spring Boot AI服务...
cd zhentao-service\Poject_Ai_backend
mvn spring-boot:run

pause
